export let addTodo = (dispatch) => (text) => {
	console.log(text)
	dispatch({
		type: 'add',
		value: text
	})
}

export let toogleTodo = (dispatch) => (index) => {
	console.log('toogle', index)
	dispatch({
		type: 'toogle',
		value: index
	})
}

export let deleteTodo = (dispatch) => (index) => {
	console.log('delete', index);
	dispatch({
		type: 'delete',
		value: index
	})
}